const express=require('express')
const app=express()
const Mock=require('mockjs')
app.get('/users/list',(req,res)=>{
    let result={
        'data|1-4':[
            {
            'id|+1':100,
            username:'@name',
            zhname:'@cname',
            'age|18=80':0,
            'sex|1':["boy","girl"],
            'phone':/^1[85429]\d{9}$/,
            'email':'@email',
            'desc':'@cparagraph(1,2)',
            'city':'@city(truexxxx)',
            'ctime':'@datetime()',
            'mtime':'@datetime()'
            }
        ]
    }
    res.send({
        error:0,
        message:'it is ok',
        data:Mock.mock(result)
    })
})
app.listen(8088)